package com.ichengzi.audit.human.api.live.remote;


import com.ichengzi.audit.human.api.live.domain.LiveAuditTask;
import com.ichengzi.audit.human.api.live.remote.factory.RemoteLiveAuditTaskFactory;
import com.ichengzi.audit.human.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author lihn
 */
@FeignClient(contextId = "remoteLiveAuditTaskService", value = "audit-human", fallbackFactory = RemoteLiveAuditTaskFactory.class)
public interface RemoteLiveAuditTaskService {
    /**
     * 获取人审任务信息
     * @param taskName 用户名
     * @return 结果
     */
    @GetMapping("/live/audit/{taskName}")
    R<LiveAuditTask> getLiveAuditTask(@PathVariable("taskName") String taskName);
}